package 笔试.A百度;

import java.util.Arrays;

public class third {
    public static void main(String arg[]){//main--来自高金磊
    
        String data="";
        char[] middle=data.toCharArray();
        Arrays.sort(middle);
        char[] middle1=data.toCharArray();
        int count=0;
        for (int i = 0; i < data.length(); i++) {
            if (middle[i]!=middle1[i])
                count++;
        }
        System.out.println(count);
    }
}
